﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020012EB RID: 4843
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SyncRogueCommonActionResultScNotify : IMessage<SyncRogueCommonActionResultScNotify>, IMessage, IEquatable<SyncRogueCommonActionResultScNotify>, IDeepCloneable<SyncRogueCommonActionResultScNotify>, IBufferMessage
	{
		// Token: 0x17003D28 RID: 15656
		// (get) Token: 0x0600D8DA RID: 55514 RVA: 0x002456F3 File Offset: 0x002438F3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SyncRogueCommonActionResultScNotify> Parser
		{
			get
			{
				return SyncRogueCommonActionResultScNotify._parser;
			}
		}

		// Token: 0x17003D29 RID: 15657
		// (get) Token: 0x0600D8DB RID: 55515 RVA: 0x002456FA File Offset: 0x002438FA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SyncRogueCommonActionResultScNotifyReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003D2A RID: 15658
		// (get) Token: 0x0600D8DC RID: 55516 RVA: 0x0024570C File Offset: 0x0024390C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SyncRogueCommonActionResultScNotify.Descriptor;
			}
		}

		// Token: 0x0600D8DD RID: 55517 RVA: 0x00245713 File Offset: 0x00243913
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SyncRogueCommonActionResultScNotify()
		{
		}

		// Token: 0x0600D8DE RID: 55518 RVA: 0x00245728 File Offset: 0x00243928
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SyncRogueCommonActionResultScNotify(SyncRogueCommonActionResultScNotify other) : this()
		{
			this.rogueSubMode_ = other.rogueSubMode_;
			this.actionResultList_ = other.actionResultList_.Clone();
			this.displayType_ = other.displayType_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600D8DF RID: 55519 RVA: 0x00245775 File Offset: 0x00243975
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SyncRogueCommonActionResultScNotify Clone()
		{
			return new SyncRogueCommonActionResultScNotify(this);
		}

		// Token: 0x17003D2B RID: 15659
		// (get) Token: 0x0600D8E0 RID: 55520 RVA: 0x0024577D File Offset: 0x0024397D
		// (set) Token: 0x0600D8E1 RID: 55521 RVA: 0x00245785 File Offset: 0x00243985
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint RogueSubMode
		{
			get
			{
				return this.rogueSubMode_;
			}
			set
			{
				this.rogueSubMode_ = value;
			}
		}

		// Token: 0x17003D2C RID: 15660
		// (get) Token: 0x0600D8E2 RID: 55522 RVA: 0x0024578E File Offset: 0x0024398E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<RogueCommonActionResult> ActionResultList
		{
			get
			{
				return this.actionResultList_;
			}
		}

		// Token: 0x17003D2D RID: 15661
		// (get) Token: 0x0600D8E3 RID: 55523 RVA: 0x00245796 File Offset: 0x00243996
		// (set) Token: 0x0600D8E4 RID: 55524 RVA: 0x0024579E File Offset: 0x0024399E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCommonActionResultDisplayType DisplayType
		{
			get
			{
				return this.displayType_;
			}
			set
			{
				this.displayType_ = value;
			}
		}

		// Token: 0x0600D8E5 RID: 55525 RVA: 0x002457A7 File Offset: 0x002439A7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SyncRogueCommonActionResultScNotify);
		}

		// Token: 0x0600D8E6 RID: 55526 RVA: 0x002457B8 File Offset: 0x002439B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SyncRogueCommonActionResultScNotify other)
		{
			return other != null && (other == this || (this.RogueSubMode == other.RogueSubMode && this.actionResultList_.Equals(other.actionResultList_) && this.DisplayType == other.DisplayType && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600D8E7 RID: 55527 RVA: 0x00245818 File Offset: 0x00243A18
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.RogueSubMode != 0U)
			{
				num ^= this.RogueSubMode.GetHashCode();
			}
			num ^= this.actionResultList_.GetHashCode();
			if (this.DisplayType != RogueCommonActionResultDisplayType.None)
			{
				num ^= this.DisplayType.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600D8E8 RID: 55528 RVA: 0x00245884 File Offset: 0x00243A84
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600D8E9 RID: 55529 RVA: 0x0024588C File Offset: 0x00243A8C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600D8EA RID: 55530 RVA: 0x00245898 File Offset: 0x00243A98
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.DisplayType != RogueCommonActionResultDisplayType.None)
			{
				output.WriteRawTag(8);
				output.WriteEnum((int)this.DisplayType);
			}
			if (this.RogueSubMode != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.RogueSubMode);
			}
			this.actionResultList_.WriteTo(ref output, SyncRogueCommonActionResultScNotify._repeated_actionResultList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600D8EB RID: 55531 RVA: 0x00245904 File Offset: 0x00243B04
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.RogueSubMode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.RogueSubMode);
			}
			num += this.actionResultList_.CalculateSize(SyncRogueCommonActionResultScNotify._repeated_actionResultList_codec);
			if (this.DisplayType != RogueCommonActionResultDisplayType.None)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.DisplayType);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600D8EC RID: 55532 RVA: 0x00245970 File Offset: 0x00243B70
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SyncRogueCommonActionResultScNotify other)
		{
			if (other == null)
			{
				return;
			}
			if (other.RogueSubMode != 0U)
			{
				this.RogueSubMode = other.RogueSubMode;
			}
			this.actionResultList_.Add(other.actionResultList_);
			if (other.DisplayType != RogueCommonActionResultDisplayType.None)
			{
				this.DisplayType = other.DisplayType;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600D8ED RID: 55533 RVA: 0x002459D1 File Offset: 0x00243BD1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600D8EE RID: 55534 RVA: 0x002459DC File Offset: 0x00243BDC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 8U)
				{
					if (num != 40U)
					{
						if (num != 66U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.actionResultList_.AddEntriesFrom(ref input, SyncRogueCommonActionResultScNotify._repeated_actionResultList_codec);
						}
					}
					else
					{
						this.RogueSubMode = input.ReadUInt32();
					}
				}
				else
				{
					this.DisplayType = (RogueCommonActionResultDisplayType)input.ReadEnum();
				}
			}
		}

		// Token: 0x04005652 RID: 22098
		private static readonly MessageParser<SyncRogueCommonActionResultScNotify> _parser = new MessageParser<SyncRogueCommonActionResultScNotify>(() => new SyncRogueCommonActionResultScNotify());

		// Token: 0x04005653 RID: 22099
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005654 RID: 22100
		public const int RogueSubModeFieldNumber = 5;

		// Token: 0x04005655 RID: 22101
		private uint rogueSubMode_;

		// Token: 0x04005656 RID: 22102
		public const int ActionResultListFieldNumber = 8;

		// Token: 0x04005657 RID: 22103
		private static readonly FieldCodec<RogueCommonActionResult> _repeated_actionResultList_codec = FieldCodec.ForMessage<RogueCommonActionResult>(66U, RogueCommonActionResult.Parser);

		// Token: 0x04005658 RID: 22104
		private readonly RepeatedField<RogueCommonActionResult> actionResultList_ = new RepeatedField<RogueCommonActionResult>();

		// Token: 0x04005659 RID: 22105
		public const int DisplayTypeFieldNumber = 1;

		// Token: 0x0400565A RID: 22106
		private RogueCommonActionResultDisplayType displayType_;
	}
}
